import React from 'react';
import { DatePicker } from 'antd';
import type { DatePickerProps, RangePickerProps } from 'antd/es/date-picker';
const { RangePicker } = DatePicker;
//

function SelectTime(props:any){

  const onChange = (
    value: DatePickerProps['value'] | RangePickerProps['value'],
    dateString: [string, string] | string,
  ) => {
  
    props.getTime(dateString)
  };

    return (
        <div>
            
    <RangePicker onChange={onChange} />
   
        </div>
    )
}



export default  SelectTime